package com.scpii.universal.service;

import java.util.List;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.scpii.universal.hibernate.dao.BaseDao;
import com.scpii.universal.hibernate.entity.TypeTab;
import com.scpii.universal.hibernate.intface.BaseInterface;
import com.scpii.universal.util.SpringBeanFactory;

public class TypeTabService implements BaseInterface<TypeTab> {
	private static final Logger log = LoggerFactory
			.getLogger(TypeTabService.class);
//	private BaseDao<TypeTab> typeTabDao = SpringBeanFactory.typeTabDao;
	private BaseDao<TypeTab> typeTabDao;

	public TypeTab get(Integer id) throws Exception {
		return typeTabDao.get(id);
	}

	public List<TypeTab> getAll() throws Exception {
		return typeTabDao.getAll();
	}

	public TypeTab get(String propertyName, Object value) throws Exception {
		return null;
	}

	public List<TypeTab> getList(String propertyName, Object value)
			throws Exception {
		return null;
	}

	public Long getTotalCount() throws Exception {
		return null;
	}

	public void save(TypeTab obj) throws Exception {

	}

	public void update(TypeTab obj) throws Exception {

	}

	public void delete(TypeTab obj) throws Exception {

	}

	public void delete(Integer id) throws Exception {

	}

	public List<TypeTab> hqlGetList(String hql, Map<String, Object> argsMap)
			throws Exception {
		return typeTabDao.hqlGetList(hql, argsMap);
	}

	public void hqlUpdate(String namedHqlQuery, Map<String, Object> argsMap)
			throws Exception {
		typeTabDao.hqlUpdate(namedHqlQuery, argsMap);
	}

	public Long hqlGetNums(String namedHqlQuery, Map<String, Object> argsMap)
			throws Exception {
		return typeTabDao.hqlGetNums(namedHqlQuery, argsMap);
	}

	public List<TypeTab> sqlGetList(String sqls, Map<String, Object> argsMap)
			throws Exception {
		return typeTabDao.sqlGetList(sqls, argsMap);
	}

	public void sqlUpdate(String sqls, Map<String, Object> argsMap)
			throws Exception {
		typeTabDao.sqlUpdate(sqls, argsMap);
	}

	public Long sqlGetNum(String sqls, Map<String, Object> argsMap)
			throws Exception {
		return typeTabDao.sqlGetNum(sqls, argsMap);
	}
	//Setter

	public void setTypeTabDao(BaseDao<TypeTab> typeTabDao) {
		this.typeTabDao = typeTabDao;
	}
	
}